<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>

<head>
    <%@include file="../system/head.jsp"%>
    <title>商品已成功加入购物车</title>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/css/webbase.css" />
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/css/pages-success-cart.css" />
</head>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/js/plugins/jquery/jquery.min.js"></script>
<script>
    $(function () {
        var username = '${Username}';
        if(username === ''){
            $("#showUsername").html("请<a href=\"${pageContext.request.contextPath}/system/login\">登录</a>\n" +
                "                            <span><a href=\"${pageContext.request.contextPath}/system/register\">免费注册</a></span>")
        }else{
            $("#showUsername").html(""+username+" <a href='${pageContext.request.contextPath}/login/logout'>退出登录</a>");
        }
    });
</script>
<body>
<!-- 头部栏位 -->
<!--页面顶部-->
<%@include file="../system/header.jsp"%>
<!--页面顶部结束-->


<script type="text/javascript" src="${pageContext.request.contextPath}/static/js/plugins/jquery.easing/jquery.easing.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/js/plugins/sui/sui.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/js/widget/nav.js"></script>
</body>
<div class="success-cart">
    <div class="py-container ">
        <h3><i class="sui-icon icon-pc-right"></i>商品已成功加入购物车！</h3>
        <div class="goods">
            <div class="left-good">
                <div class="left-pic"><img src=${goods.image1}></div>
                <div class="right-info">
                    <p class="title">${goods.goods_name}</p>
                    <p class="attr"> 数量：1</p>
                </div>
            </div>
            <div class="right-gocart">
                <a href="javascript:history.go(-1)" class="sui-btn btn-xlarge">继续购物</a>
                <a href="${pageContext.request.contextPath}/goods/toCart?username=${Username}" class="sui-btn btn-xlarge btn-danger " target="_blank">去购物车结算 > </a>
            </div>
        </div>
    </div>
</div>

<!-- 底部栏位 -->
<!--页面底部-->
<%@include file="../system/Footer.jsp"%>
<!--页面底部END-->
</html>